package com.udg.goodmorning.tweet;


import android.appwidget.AppWidgetManager;
import android.appwidget.AppWidgetProvider;
import android.content.Context;
import android.content.Intent;
import android.content.SharedPreferences;
import android.util.Log;
import android.widget.ToggleButton;

public class Widget extends AppWidgetProvider {
	private final String TAG = "GWC-Widget";
	private ToggleButton tb;
	private Boolean onoff_cbx;
	SharedPreferences getPref;

	@Override
	public void onEnabled(Context context) {
		super.onEnabled(context);
		if(Utility.DEBUG)Log.d(TAG, "onEnabled");

		/* Wake up Service for widget */
		Intent wsIntent = new Intent(context, WidgetService.class);
		context.startService(wsIntent);

	}

	@Override
	public void onReceive(Context context, Intent intent) {
		super.onReceive(context, intent);
	}

	@Override
	public void onUpdate(Context context, AppWidgetManager appWidgetManager,
			int[] appWidgetIds) {
		if(Utility.DEBUG)Log.d(TAG, "onUpdate");
		super.onUpdate(context, appWidgetManager, appWidgetIds);
	}

	@Override
	public void onDeleted(Context context, int[] appWidgetIds) {
		if(Utility.DEBUG)Log.d(TAG, "onDeleted");
		super.onDeleted(context, appWidgetIds);
	}

	@Override
	public void onDisabled(Context context) {
		if(Utility.DEBUG)Log.d(TAG, "onDisabled");
		super.onDisabled(context);
	}

}
